﻿<div>
	<div>
		<h3>{{model.user.Nickname}}'s Photos: {{model.currentFolder.path}}
			<span data-ng-hide="model.currentFolder.path.length>0">{{model.currentFolder.Name}}</span>
			<input data-ng-show="model.currentFolder.path.length>0" data-ng-model="model.currentFolder.newName" />
			<span data-ng-show="isViewingFavorites()">Favorites</span>

			<div style="display: inline-block;" data-ng-hide="isViewingFavorites()">
				<img style="cursor: pointer;" class="fav-img" src="../../../Content/images/locked2.png" data-ng-show="model.currentFolder.IsParentFolderPrivate" />
				<img style="cursor: pointer;" class="fav-img" src="../../../Content/images/locked2.png"
					data-ng-show="model.currentFolder.IsPrivate  && !model.currentFolder.IsParentFolderPrivate"
					data-ng-click="unlockFolder(model.currentFolder)" />
				<img style="cursor: pointer;" class="fav-img" src="../../../Content/images/unlocked2.png"
					data-ng-hide="model.currentFolder.IsParentFolderPrivate || model.currentFolder.IsPrivate"
					data-ng-click="lockFolder(model.currentFolder)" />

				<a style="display: inline-block;" class="action-link" data-ng-show="model.currentFolder.path.length>0 && model.currentFolder.Name !== model.currentFolder.newName"
					data-ng-click="submitRenameFolder()">Save New Name</a>
				<a style="display: inline-block;" class="action-link" data-ng-show="model.currentFolder.path.length>0 && model.currentFolder.Name !== model.currentFolder.newName"
					data-ng-click="model.currentFolder.newName = model.currentFolder.Name">Undo</a>
			</div>
		</h3>
	</div>
	<div>
		<div class="folders-view">
			<div data-ui-view="folders-view"></div>
		</div>
		<div class="images-view" data-ng-controller="UserLibraryImageContainerController">
			<div data-ui-view="images-view"></div>
		</div>
	</div>
</div>
